package com.turing.post.report.util;

import java.util.Date;
import java.util.List;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;

@Remote
@Local
public interface MerchantBusinessDaySettlementDao {
	/**
	 * 创建商户日结汇总记录
	 * 
	 * @param mds
	 * @throws PCPSApplicationException
	 */
	public void insert(MerchantBusinessDaySettlement mds)
			throws PCPSApplicationException;

	
	/**
	 * 更新商户日结数据
	 * @param mds
	 * @throws PCPSApplicationException
	 */
	public void update(MerchantBusinessDaySettlement mds)
			throws PCPSApplicationException;
	
	/**
	 * 删除某发卡商某日所有商户的日结数据
	 * 
	 * @param issueCompanyNo
	 *            发卡商号
	 * @param tranDate
	 *            帐务日期
	 */
	public void removeAllMerchantBusinessDaySettlementByTranDate(
			String issueCompanyNo, Date tranDate);
	/**
	 * 某商户某日的按业务类型获取汇总数据集合
	 * @param trandate
	 * @param merchantno
	 * @return 某商户某日的按业务类型的汇总数据集合
	 */
	public List<MerchantBusinessDaySettlement> getMerchantBusinessDaySettlementByTrandateAndMerchantno(
			Date trandate, String merchantno);
	
	/**
	 * 消费汇总表
	 * @param issueCompanyNo
	 * @param startDate
	 * @param endDate
	 * @param merchantno
	 * @return
	 */
	public List<Object[]> getMerchantBusinessDaySettlementTotal(
			String issueCompanyNo,String startDate,String endDate,String merchantno);
}
